/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Trp_alumno implements Serializable {
	public Trp_alumno() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TRP_ALUMNO_TRP_DATOS) {
			return ORM_trp_datos;
		}
		
		return null;
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TRP_ALUMNO_SEXO_ID_COD) {
			this.sexo_id_cod = (orm.Trp_sexo) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TRP_ALUMNO_CURSO) {
			this.curso = (orm.Trp_curso) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private String al_id_rut;
	
	private String al_nombre;
	
	private String al_fecha_nac;
	
	private orm.Trp_sexo sexo_id_cod;
	
	private orm.Trp_curso curso;
	
	private java.util.Set ORM_trp_datos = new java.util.HashSet();
	
	public void setAl_id_rut(String value) {
		this.al_id_rut = value;
	}
	
	public String getAl_id_rut() {
		return al_id_rut;
	}
	
	public String getORMID() {
		return getAl_id_rut();
	}
	
	public void setAl_nombre(String value) {
		this.al_nombre = value;
	}
	
	public String getAl_nombre() {
		return al_nombre;
	}
	
	public void setAl_fecha_nac(String value) {
		this.al_fecha_nac = value;
	}
	
	public String getAl_fecha_nac() {
		return al_fecha_nac;
	}
	
	public void setSexo_id_cod(orm.Trp_sexo value) {
		if (sexo_id_cod != null) {
			sexo_id_cod.trp_alumno.remove(this);
		}
		if (value != null) {
			value.trp_alumno.add(this);
		}
	}
	
	public orm.Trp_sexo getSexo_id_cod() {
		return sexo_id_cod;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Sexo_id_cod(orm.Trp_sexo value) {
		this.sexo_id_cod = value;
	}
	
	private orm.Trp_sexo getORM_Sexo_id_cod() {
		return sexo_id_cod;
	}
	
	public void setCurso(orm.Trp_curso value) {
		if (curso != null) {
			curso.trp_alumno1.remove(this);
		}
		if (value != null) {
			value.trp_alumno1.add(this);
		}
	}
	
	public orm.Trp_curso getCurso() {
		return curso;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Curso(orm.Trp_curso value) {
		this.curso = value;
	}
	
	private orm.Trp_curso getORM_Curso() {
		return curso;
	}
	
	private void setORM_Trp_datos(java.util.Set value) {
		this.ORM_trp_datos = value;
	}
	
	private java.util.Set getORM_Trp_datos() {
		return ORM_trp_datos;
	}
	
	public final orm.Trp_datosSetCollection trp_datos = new orm.Trp_datosSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TRP_ALUMNO_TRP_DATOS, orm.ORMConstants.KEY_TRP_DATOS_ALUMNO_ID_RUT, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getAl_id_rut());
	}
	
}
